<?php


namespace app\index\controller;


use think\Model;

class StudentsToCourse extends Model
{

    protected $table = 'sc_students';
    protected $pk='st_id';
    public function course(){
        return $this->hasMany('Course','st_id');
    }
    public function classes(){
        return $this->hasMany('Classes','cl_id','cl_id');
    }
}